﻿<u:UDialog x:Class="UTable.Objects.Controls.UConfirmDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    Height="200" Width="250">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="80" />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Foreground="White" FontSize="18" Text="{Binding Path=Message}" 
                   HorizontalAlignment="Center" VerticalAlignment="Center"/>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/> 
            </Grid.ColumnDefinitions>
            <u:UButton Grid.Column="0" MaxWidth="150" Foreground="White" FontSize="18" Margin="10, 10, 5, 10" x:Name="OkButton" Pressed="OkButton_Pressed">OK</u:UButton>
            <u:UButton Grid.Column="1" MaxWidth="150" Foreground="White" FontSize="18" Margin="5, 10, 10, 10" x:Name="CancelButton" Pressed="CancelButton_Pressed">Cancel</u:UButton>
        </Grid>
    </Grid>
</u:UDialog>
